package com.ruyuan.dependency.order.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhonghuashishan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ruyuan_order")
public class Order implements Serializable {
    private static final long serialVersionUID = -3757613975749319411L;

    public static final String TYPE_SECKILLING = "SEKILLING";
    public static final String STATUS_CREATED = "CREATED";
    public static final String STATUS_PAYED = "PAYED";
    public static final String STATUS_CANCELED = "CANCELED";

    private Long id;

    private Long userId;

    private Long skuId;

    private Integer count;

    private Long amount;

    private String type;

    private String status;

    private String attributes;

    private Date createTime;

    private Date updateTime;

}